package com.java.star.novel.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResultCode {
    SUCCESS(200, "操作成功"),
    ERROR(500, "服务器异常"),
    FAIL(501, "最多只能发布5条评论"),
    FAIL2(502,"最多只能回复30条评论"),
    REPEAT(503, "书名已存在"),
	AUTHENTICATION_ERROR(601, "请先登录"),
    TOKEN_CHECK_ERROR(602, "登录凭证已失效，请重新登录"),
    AUTHORIZATION_ERROR(603, "权限不足"),
    LOGIN_ERROR(604, "账号或密码错误"),
    PHONE_HAS_REGISTERED(605, "手机号已注册"),
    NICKNAME_HAS_EXISTED(606, "昵称已存在"),
    PHONE_CODE_HAS_EXPIRED(607, "手机验证码已过期"),
    CODE_ERROR(608, "验证码错误"),
    EMAIL_NO_REGISTER(609, "邮箱未注册"),
    GITEE_USER_NO_BIND(610, "gitee用户账号未绑定"),
    GITEE_BIND_HAS_EXISTS(611, "该手机号已被其它Gitee账户绑定"),
    COMMENT_LIMIT_5_ERROR(612, "至多评论五次"),
    COMMENT_REPLY_LIMIT_1_ERROR(613, "至多回复一次");


    private int code;
    private String msg;
}
